home *** CD-ROM | disk | FTP | other *** search
-
- ; Luna script with loops and variables.
- ; Variables are integers (long), identified with the percent character '%'.
-
- ; With the statement "for i%=65" a variable named "i%" will be created
- ; and this will be assigned the value 65 to initialise the loop.
- ; A variable is nothing more than a description that has a small memory
- ; block allocated to it by the program. This memory block can then be
- ; assigned values, or values can be read from it.
-
- ; A For/Next-loop may also contain further loops, if their variables
- ; have a different description to the higher order loop.
-
- ; Example:
-
- for i%=65 to 76
- keypress(i%,0)
- next i%
- end()
-
-